
public class UninoArray {

		public static void main(String args[])
		{
			int a[]={7,7,4,9,9,9,8,1,1,2,2,5,5,5};
			int len=a.length;	
		int count =0;
		for (int i=0; i<len; i++)
		{
		count = 1;
		for (int j=i+1; j<len; j++)
		if (a[j] == a[i]) 
			count++;
		
		}
		
		int num = 0;
		
		for (int i=0; i<len; i++)
		if (count == 1) num++;
		int [] result = new int[num];
		int position = 0;
		for (int i=0; i<len; i++)
		{
		if (count == 1)
		{
		result[position] = a[i];
		position++;
		}
		}
		System.out.println(result);
		}
}

